﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SinaAPIDocumentToRequestTool
{
    public abstract class DocumentDataGetterBase
    {
        public abstract string HomeUrl { get; }
        public void Init(WebBrowser browser)
        {
            _browser = browser;
            GoHome();
        }
        protected WebBrowser _browser;
        public abstract string GetPath();
        public abstract string GetComment();
        public abstract Dictionary<string, string[]> GetParamsAndParamsComment();
        public abstract string GetWebMethod();
        public abstract string GetJsonResponse();
        public void GoHome()
        {
            _browser.Url = new Uri(HomeUrl);
        }
    }
}
